import { get } from "../utils/request";

// 商品分类
export const getCategory = () => get("/api/v1/product_categories");

// 商品列表
export const loadProductsAPI = (page = 1, category = "") =>
  get("/api/v1/products", { page, category });

// 根据id获取商品详情
export const loadProductByIdAPI = (id) => get("/api/v1/products/" + id);
